﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterProf.master" AutoEventWireup="true" CodeFile="p_Raspored.aspx.cs" Inherits="RasporedProf" MaintainScrollPositionOnPostback="true" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
  <link rel="Stylesheet" href="css/tabela.css" type="text/css" />
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Label ID="lblIme" runat="server" Text=""></asp:Label><br />
    <asp:Label ID="lblPrezime" runat="server" Text=""></asp:Label><br />
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
<h2><span class="blue">Распоред</span></h2>
    <center>
        <asp:Label ID="lblProba" runat="server"></asp:Label>
        <asp:Panel ID="pnlKonsultacii" runat="server" HorizontalAlign="Center">
            <asp:Button ID="btnKons" runat="server" Text="Промени термин за консултации" onclick="btnKons_Click" />
            <asp:Label ID="lblDen" runat="server" Text="Ден: " Visible="false"></asp:Label>
            <asp:TextBox ID="txtDen" runat="server" Height="20px" Width="100px" 
                Visible="false" ValidationGroup="vgKons"></asp:TextBox>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Label ID="lblOd" runat="server" Text="Од: " Visible="false"></asp:Label>
            <asp:TextBox ID="txtOd" runat="server" ValidationGroup="vgKons" Visible="false" 
                Width="50px"></asp:TextBox>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Label ID="lblDo" runat="server" Text="До: " Visible="false"></asp:Label>
            <asp:TextBox ID="txtDo" runat="server" ValidationGroup="vgKons" Visible="false" 
                Width="50px"></asp:TextBox>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="btnPromeni" runat="server" onclick="btnPromeni_Click" 
                Text="Промени" ValidationGroup="vgKons" Visible="false" />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="btnOtkazi" runat="server" onclick="btnOtkazi_Click" 
                Text="Откажи" Visible="false" />

            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                ErrorMessage="RegularExpressionValidator" Display="None" 
                ValidationGroup="vgKons" ControlToValidate="txtDen" 
                ValidationExpression="Понеделник|Вторник|Среда|Четврток|Петок|Ponedelnik|Vtornik|Sreda|Cetvrtok|Petok|ponedelnik|vtornik|sreda|cetvrtok|petok|понеделник|вторник|среда|четврток|петок"></asp:RegularExpressionValidator>
            <asp:RangeValidator ID="RangeValidator1" runat="server" ValidationGroup="vgKons" 
            ErrorMessage="Невалидно време. Валиден формат: 8-20" ControlToValidate="txtDo" MaximumValue="20" MinimumValue="8" Type="Integer" Display="None"></asp:RangeValidator>
            <asp:RangeValidator ID="RangeValidator2" ValidationGroup="vgKons" runat="server" ErrorMessage="Невалидно време. Валиден формат: 8-20" ControlToValidate="txtOd" MaximumValue="20" MinimumValue="8" Type="Integer" Display="None"></asp:RangeValidator>
            <asp:RequiredFieldValidator ID="rv1" runat="server" 
                ErrorMessage="Пополнете ги сите полиња" ControlToValidate="txtDen" ValidationGroup="vgKons" Display="None"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="rv2" runat="server" 
                ErrorMessage="Пополнете ги сите полиња" ControlToValidate="txtDo" ValidationGroup="vgKons" Display="None"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="rv3" runat="server" 
                ErrorMessage="Пополнете ги сите полиња" ControlToValidate="txtOd" ValidationGroup="vgKons" Display="None"></asp:RequiredFieldValidator>   
            <asp:CompareValidator ID="CompareValidator1" runat="server" 
                ValidationGroup="vgKons" Display="None" 
                ErrorMessage="Невалидано време" ControlToCompare="txtDo" 
                ControlToValidate="txtOd" Operator="GreaterThan"></asp:CompareValidator>
            <br />
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="vgKons" />
         </asp:Panel>
    </center>
    <br />
    <asp:Panel ID="pnlPanela" runat="server" HorizontalAlign="Center">
        
    </asp:Panel>
</asp:Content>

